package com.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.entity.Response;
import com.entity.pojo.LfCaseState;
import com.mapper.LfCaseStateMapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/caseState")
public class CaseStateController {

    @Resource
    private LfCaseStateMapper caseStateMapper;

    @GetMapping
    private Response listCaseState() {
        List<LfCaseState> list = caseStateMapper.selectList(new QueryWrapper<LfCaseState>().eq("deleted", 0));
        return new Response().setSuccess().appendMsg("list", list);
    }
}
